package com.xian.dynasties.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xian.common.annotation.Excel;
import com.xian.common.core.domain.BaseEntity;

/**
 * 朝代信息对象 t_dynasties
 * 
 * @author jimihua
 * @date 2025-03-31
 */
public class TDynasties extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 朝代名称 */
    @Excel(name = "朝代名称")
    private String name;

    /** 起始年份 */
    @Excel(name = "起始年份")
    private Long startYear;

    /** 结束年份 */
    @Excel(name = "结束年份")
    private Long endYear;

    /** 朝代描述 */
    @Excel(name = "朝代描述")
    private String description;

    /** 朝代关键字 */
    @Excel(name = "朝代关键字")
    private String keywords;

    /** 标题大图路径 */
    @Excel(name = "标题大图路径")
    private String titleImage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setStartYear(Long startYear) 
    {
        this.startYear = startYear;
    }

    public Long getStartYear() 
    {
        return startYear;
    }

    public void setEndYear(Long endYear) 
    {
        this.endYear = endYear;
    }

    public Long getEndYear() 
    {
        return endYear;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }

    public void setTitleImage(String titleImage) 
    {
        this.titleImage = titleImage;
    }

    public String getTitleImage() 
    {
        return titleImage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("startYear", getStartYear())
            .append("endYear", getEndYear())
            .append("description", getDescription())
            .append("keywords", getKeywords())
            .append("titleImage", getTitleImage())
            .toString();
    }
}
